package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.IndexManagement;

import java.util.List;

/**
 * 指标管理业务对象 index_management
 *
 * @author Lion Li
 * @date 2025-10-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IndexManagement.class, reverseConvertGenerate = false)
public class IndexManagementBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 序号
     */
    private Long itemOrder;

    /**
     * 指标类型
     */
    @NotNull(message = "指标类型", groups = { AddGroup.class, EditGroup.class })
    private String indexCategory;

    /**
     * 权重
     */
    @NotNull(message = "权重", groups = { AddGroup.class, EditGroup.class })
    private String weightValue;

    /**
     * 安全指数名称
     */
    private String safetyIndex;

    /**
     * 指标管理明细
     */
    private List<IndexManagementDetailBo> indexManagementDetailList;
}
